package com.taotao.doctor.service.impl;

import com.taotao.common.security.utils.SecurityUtils;
import com.taotao.doctor.domain.po.MedFans;
import com.taotao.doctor.domain.vo.MedFansVo;
import com.taotao.doctor.mapper.MedFansMapper;
import com.taotao.doctor.service.MedFansService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MedFansServiceImpl implements MedFansService {
    @Autowired
    private MedFansMapper medFansMapper;
    @Override
    public List<MedFansVo> getMedFansList() {
        Long userId = SecurityUtils.getUserId();
        return medFansMapper.getMedFansList(userId);
    }
}
